package com.oceansoft.mobile.biz.admin.entity;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

/**
 * 自定义菜单
 * 
 * @author sgq
 * 
 */
public class BootMenu {
	private long sid;
	// 父级的sid
	private long parentid;
	private String m_name;
	private String m_type;
	private String m_url;
	private String m_key;
	private long reply_id;
	private int status;
	private String wx_openid;

	public static RowMapper<BootMenu> getRowMapper() {
		return new RowMapper<BootMenu>() {
			public BootMenu mapRow(ResultSet rs, int rowNum)
					throws SQLException {
				BootMenu obj = new BootMenu();
				obj.setSid(rs.getLong("sid"));
				obj.setParentid(rs.getLong("parentid"));
				obj.setM_name(rs.getString("m_name"));
				obj.setM_type(rs.getString("m_type"));
				obj.setM_url(rs.getString("m_url"));
				obj.setM_key(rs.getString("m_key"));
				obj.setWx_openid(rs.getString("wx_openid"));
				return obj;
			}
		};
	}

	public long getSid() {
		return sid;
	}

	public void setSid(long sid) {
		this.sid = sid;
	}

	public long getParentid() {
		return parentid;
	}

	public void setParentid(long parentid) {
		this.parentid = parentid;
	}

	public String getM_name() {
		return m_name;
	}

	public void setM_name(String m_name) {
		this.m_name = m_name;
	}

	public String getM_type() {
		return m_type;
	}

	public void setM_type(String m_type) {
		this.m_type = m_type;
	}

	public String getM_url() {
		return m_url;
	}

	public void setM_url(String m_url) {
		this.m_url = m_url;
	}

	public String getM_key() {
		return m_key;
	}

	public void setM_key(String m_key) {
		this.m_key = m_key;
	}

	public long getReply_id() {
		return reply_id;
	}

	public void setReply_id(long reply_id) {
		this.reply_id = reply_id;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getWx_openid() {
		return wx_openid;
	}

	public void setWx_openid(String wx_openid) {
		this.wx_openid = wx_openid;
	}

}
